package com.htc.dp.filter;

/**
 * 责任链模式
 * @author: htc
 * @date: Created in 17:16 2018/6/7.
 */
public class MsgProcessor {
    private String msg;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String process() {
        //process the html tag
        String r = msg.replace("<", "[").replace(">", "]");

        //process the sensitive words
        r= r.replace("被就业","就业").replace("敏感","");

        return r;
    }
}
